// stores/user.js
import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', {
  state: () => ({
    roles: ['admin'],
    username: '',
    avatar: ''
  }),
  actions: {
    setUserInfo(payload:any) {
      this.username = payload.username
      this.avatar = payload.avatar
    }
  }
})